package com.bookstore.backend.controller;

import com.bookstore.backend.model.ResultVO;
import com.bookstore.backend.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: world
 * @date: 2022/7/29 15:10
 * @description: 测试接口
 */
@RestController
@RequestMapping("")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping(value = "/demo",method = RequestMethod.GET)
    public ResultVO<?> getDemo(){
        return ResultVO.success(demoService.selectList());
    }

}
